package com.maxlen.search.dto;

import com.maxlen.common.to.es.SkuEsModel;
import lombok.Data;

import java.util.List;

@Data
public class SearchResultDTO {

    // 商品信息
    private List<SkuEsModel> products;

    // 当前页码
    private Integer pageNum;

    // 总记录数
    private Long total;

    // 总页码
    private Integer totalPages;

    // 品牌信息
    private List<BrandDTO> brands;

    // 分类信息
    private List<AttrDTO> attrs;

    // 属性信息
    private List<CategoryDTO> categorys;

    @Data
    public static class BrandDTO {
        private Long brandId;
        private String brandName;
        private String brandImg;
    }

    @Data
    public static class AttrDTO {
        private Long attrId;
        private String attrName;
        private List<String> attrValue;
    }

    @Data
    public static class CategoryDTO {
        private Long catalogId;
        private String catalogName;
    }

}
